﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Showroom.BLL;

namespace ShowroomMobile
{
    public partial class ControlPanel : AdminBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ((AdminSite)Page.Master).SetTitlePage("Control Panel");
                if (View_Users.GetCurrentUser() != null && View_Users.GetCurrentUser().MasterAdmin)
                {
                    dvControlPanel.InnerHtml += "<a class='item' href='ManagerUser.aspx'><img src='images/user_manager.png' title='Manage User' /><br /><span>User</span></a>";
                }
            }
        }
    }
}